package com.slofzx.nuoda.evaluation.project.enums;

import com.slofzx.nuoda.common.EnumConfig;
import com.slofzx.nuoda.common.config.Type;

@EnumConfig(
    id = "gas-pool-type",
    name = "气藏类型"
)
public enum GasPoolTypeEnum implements Type {
    CONVENTIONAL_OIL_AND_GAS("conventional_oil_and_gas", "陆上常规",1),
    SPECIAL_OIL_AND_GAS("special_oil_and_gas", "陆上特殊",2),
    COALBED_GAS("coalbed_gas", "煤层气",3),
    SHALE_GAS("shale_gas", "页岩气",4),
    TIGHT_GAS("tight_gas", "致密气",5),
    ;

    private String id;
    private String name;
    private double sort;

    private GasPoolTypeEnum(String id, String name, double sort) {
        this.id = id;
        this.name = name;
        this.sort = sort;
    }

    public String getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public double getSort() {
        return this.sort;
    }

    public static GasPoolTypeEnum getEnum(String id) {
        GasPoolTypeEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            GasPoolTypeEnum dataTypeEnum = var1[var3];
            if (dataTypeEnum.getId().equals(id)) {
                return dataTypeEnum;
            }
        }

        return null;
    }
}
